import 'package:flutter/material.dart';
import 'package:flutter_shop/utils/utils.dart';
import 'package:flutter_shop/widget/load_image.dart';

///商店信息
class ShopInfo extends StatelessWidget {
  final String image;
  final String phone;

  ShopInfo({Key key, this.image, this.phone}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return RawMaterialButton(
      onPressed: () => Utils.callPhone(phone),
      child: Container(
        child: LoadImage(image),
      ),
    );
  }
}
